package jsyf.oa.dao.report;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.report.Template2ModuleEntity;
import jsyf.oa.entity.report.User2ReportEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by Lenovo on 2017/11/24.
 */
@Repository
public class User2ReoprtDao extends BaseDao {
    public User2ReoprtDao() {
        super.iBaseEntity = new User2ReportEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, User2ReportEntity.class);
    }
}
